﻿<Core:DXWindow x:Class="ThanNhanTao.frmThanhToanNgoaiTruTimKiem" 
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
               xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" 
               xmlns:dxg="clr-namespace:DevExpress.Xpf.Grid;assembly=DevExpress.Xpf.Grid.v11.1" 
               xmlns:Core="clr-namespace:DevExpress.Xpf.Core;assembly=DevExpress.Xpf.Core.v11.1" 
               xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/core"
                dxc:ThemeManager.ThemeName="Office2007Blue" Icon="/ThanNhanTao;component/Images/iconbv48x48.ico"
               Height="600" Width="600" Title="Danh sách biệt dược" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="200*"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100*"/>
            <ColumnDefinition Width="85"/>
            <ColumnDefinition Width="8"/>
            <ColumnDefinition Width="75"/>
            <ColumnDefinition Width="3"/>
        </Grid.ColumnDefinitions>
        <dxg:GridControl Name="gridDmYeuCau" PreviewKeyDown="gridDmYeuCau_PreviewKeyDown" AutoExpandAllGroups="True" Grid.ColumnSpan="5">
            <dxg:GridControl.Columns>
                <dxg:GridColumn FieldName="CheckItem" Name="colChon" Width="30">
                    <dxg:GridColumn.EditSettings>
                        <dxe:CheckEditSettings/>
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>
                <dxg:GridColumn FieldName="Dm_LoaiYeuCau.TenLoaiYeuCau" ReadOnly="True" Header="" GroupIndex="0" />
                <dxg:GridColumn FieldName="MaYeuCau" Header="Mã yêu Cầu" ReadOnly="True" Width="90" />
                <dxg:GridColumn FieldName="TenYeuCau" Header="Tên yêu cầu" ReadOnly="True" Width="180" />
                <dxg:GridColumn FieldName="Dm_DonViTinh.TenDonViTinh" Header="Đơn vị" ReadOnly="True" Width="60" />
                <dxg:GridColumn FieldName="GiaYeuCau" Header="Đơn giá" ReadOnly="True" Width="80">
                    <dxg:GridColumn.EditSettings>
                        <dxe:TextEditSettings Mask="c0" MaskType="Numeric" MaskCulture="Vietnamese (Vietnam)" MaskUseAsDisplayFormat="True" />
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>
            </dxg:GridControl.Columns>
            <dxg:GridControl.View>
                <dxg:TableView Name="tbvDmYeuCau" ShowGroupPanel="False" ShowAutoFilterRow="True" 
                               AutoWidth="True" AllowGrouping="True" 
                               MouseDoubleClick="tbvDmYeuCau_MouseDoubleClick"  
                               MultiSelectMode="None" PreviewKeyDown="tbvDmYeuCau_PreviewKeyDown" />
            </dxg:GridControl.View>
        </dxg:GridControl>
        <Button Name="btnChapNhan" Content="Hoàn thành" Grid.Row="1" Grid.Column="1" Click="btnHoanThanh_Click"/>
        <Button Name="btnDong" Content="Đóng" Grid.Row="1" Grid.Column="3" Click="btnDong_Click" />
    </Grid>
</Core:DXWindow>